import request from '@/utils/request';

export async function addValue(params) {
  return request(`/fss/ntfund1/addNetValueData`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json;charset=utf-8',
    },
    body: JSON.stringify(params),
  });
}

export async function delValue(params) {
  return request(`/fss/ntfund1/removeNetValueData`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json;charset=utf-8',
    },
    body: JSON.stringify(params),
  });
}

export async function getCurve(params) {
  return request(`/fss/ntfund1/netValueCurve`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json;charset=utf-8',
    },
  });
}

export async function getDates(params) {
  return request(`/fss/ntfund1/netValueDates`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json;charset=utf-8',
    },
  });
}
